package com.smalljj.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.smalljj.bean.Message;
import com.smalljj.dao.MessageDao;
import com.smalljj.service.MessageService;

public class MessageServiceImpl implements MessageService {

	@Autowired
	private MessageDao messageDao;

	@Override
	public boolean insert(Message message) throws Exception {
		return messageDao.insert(message);
	}

	@Override
	public List<Map<String, Object>> getRMessageList(String userId) throws Exception {
		return messageDao.getRMessageList(userId);
	}

	@Override
	public List<Map<String, Object>> getSMessageList(String userId) throws Exception {
		return messageDao.getSMessageList(userId);
	}

	@Override
	public boolean update(Message message) throws Exception {
		return messageDao.update(message);
	}
}
